<template>
	<view class="newPersonList">
		<view class="list">
			<GoodsList :list="goodsList.lists"></GoodsList>
			<u-loadmore :status="loadMoreStatus" v-if="goodsList.lists.length" />
		</view>
	</view>
</template>

<script>
import com from '../../mixin/index.js';
import GoodsList from '../../components/goodsList/goodsList.vue';
export default {
	mixins: [com],
	components: {
		GoodsList
	},
	data() {
		return {
			page: {
				page: 1,
				page_size: 8
			},
			goodsList: {
				lists: [],
				total: 1,
				total_page: 0
			}
		};
	},
	onLoad(val) {
		let params = {
			...this.page,
			is_new: 1,
			team_id: this.$store.getters.cur_address_point_id
		};
		this.getList('goodsList', 'getProductList', 'page', params);
	},
	onReachBottom() {
		let params = {
			...this.page,
			$is_new: '1',
			team_id: this.$store.getters.cur_address_point_id
		};
		this.getList('goodsList', 'getProductList', 'page', params);
	},
	methods: {}
};
</script>

<style lang="scss">
.newPersonList {
	background-color: #f9f9f9;
	min-height: 100vh;
	box-sizing: border-box;
	padding: 24rpx;
	.status_bar {
	}
	.pageTitle {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 20rpx 0rpx;
		margin-bottom: 30rpx;
		.back_btn {
		}
		.centerTitle {
			font-size: 34rpx;
			font-weight: 500;
			color: #333333;
		}
	}
	.list {
	}
}
</style>
